package com.xc.stock.infrastructure.db.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.UpdateTimestamp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * AppVersionPO
 *
 * @author xlfd
 * @email xlfd@gmail.com
 * @created 2021/10/25
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "user_staff")
public class UserStaffPO {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	Integer id;
	Integer agentId;
	String agentName;
	String serviceAddr;

	Integer status;

	@CreationTimestamp
	@Column(updatable = false)
	Date createAt;

	@UpdateTimestamp
	Date updateAt;
}
